import requests

# token = requests.request('GET', 'http://49.235.136.22:8888/portal/getToken').text

response1 = requests.request('GET', 'http://49.235.136.22:8888/portal/getToken')
token = response1.text

headers = {'Content-Type': 'application/json','token':token}
body = {'pageNum': 1,
        'pageSize': 6,
        'searchKey': '',
        'tagIds': []}

response = requests.request('POST',
                            'https://app.dev.aws.gravity.porsche.cn/management-portal-dev-api/user/getUserInfo', headers=headers,json=body)

print(response.status_code)
print(response.headers)
print(response.text)
print(response.json())
print(response.json()['msg'])


print(type(response.headers))
print(type(response.text))
print(type(response.json()))
